package com.cgwx.tmservice.config;

import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author GaoWei
 * @Date 2023/8/30 - 14:53
 */

@PropertySource("classpath:can-config.properties")
@Component
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Api(tags = "CAN路通信配置类")
public class CanConfig {

    @Value("${canId}")
    private String canId;

    @Value("${syncWord}")
    private String syncWord;
}
